<template>
  <section class="link-wrapper">
    <el-link :type="type" v-bind="$attrs" v-on="$listeners">
      <slot />
    </el-link>
  </section>
</template>

<script>
export default {
  name: 'MyLink',
  props: {
    type: { type: String, default: 'default',
      validator: val => ['primary', 'success', 'warning', 'danger', 'info', 'default'].indexOf(val) !== -1
    }
  }
}
</script>

<style>

</style>
